home *** CD-ROM | disk | FTP | other *** search
- package geo.emblaze;
-
- class Puppet {
- movieCast PuppetCast;
- movieLayer PuppetLayer;
- static final byte oPolygon = 0;
- static final byte oLine = 1;
- static final byte oOval = 2;
- static final byte oRect = 3;
- static final byte oRoundRect = 4;
- static final byte oArc = 5;
- static final byte oText = 6;
- movieStruct movieInfo;
-
- Puppet(movieStruct var1, int var2, int var3) {
- this.movieInfo = var1;
- this.PuppetLayer = new movieLayer();
- this.PuppetLayer.Mode = this.movieInfo.frameArchive[var2].layerArchive[var3 - 1].Mode;
- this.PuppetLayer.mediaType = this.movieInfo.frameArchive[var2].layerArchive[var3 - 1].mediaType;
- this.PuppetLayer.mediaId = this.movieInfo.frameArchive[var2].layerArchive[var3 - 1].mediaId;
- this.PuppetLayer.XLoc = this.movieInfo.frameArchive[var2].layerArchive[var3 - 1].XLoc;
- this.PuppetLayer.YLoc = this.movieInfo.frameArchive[var2].layerArchive[var3 - 1].YLoc;
- this.PuppetLayer.LS1Id = this.movieInfo.frameArchive[var2].layerArchive[var3 - 1].LS1Id;
- this.PuppetLayer.LS2Id = this.movieInfo.frameArchive[var2].layerArchive[var3 - 1].LS2Id;
- this.PuppetLayer.Ink = this.movieInfo.frameArchive[var2].layerArchive[var3 - 1].Ink;
- this.PuppetLayer.hRatio = this.movieInfo.frameArchive[var2].layerArchive[var3 - 1].hRatio;
- this.PuppetLayer.vRatio = this.movieInfo.frameArchive[var2].layerArchive[var3 - 1].vRatio;
- this.setLayerMedia(this.movieInfo.castArchive[this.PuppetLayer.mediaId - 1]);
- }
-
- public void setLayerMedia(movieCast var1) {
- this.PuppetCast = new movieCast();
- this.PuppetCast.Id = var1.Id;
- this.PuppetCast.numOfObjects = var1.numOfObjects;
- this.PuppetCast.X = var1.X;
- this.PuppetCast.Y = var1.Y;
- this.PuppetCast.W = var1.W;
- this.PuppetCast.H = var1.H;
- this.PuppetCast.regX = var1.regX;
- this.PuppetCast.regY = var1.regY;
- this.PuppetCast.objectArchive = new movieObject[this.PuppetCast.numOfObjects];
-
- for(int var2 = 0; var2 < this.PuppetCast.numOfObjects; ++var2) {
- this.PuppetCast.objectArchive[var2] = new movieObject();
- this.PuppetCast.objectArchive[var2].Type = var1.objectArchive[var2].Type;
- this.PuppetCast.objectArchive[var2].rectX1 = var1.objectArchive[var2].rectX1;
- this.PuppetCast.objectArchive[var2].rectX2 = var1.objectArchive[var2].rectX2;
- this.PuppetCast.objectArchive[var2].rectY1 = var1.objectArchive[var2].rectY1;
- this.PuppetCast.objectArchive[var2].rectY2 = var1.objectArchive[var2].rectY2;
- this.PuppetCast.objectArchive[var2].fillFore = var1.objectArchive[var2].fillFore;
- this.PuppetCast.objectArchive[var2].fillBack = var1.objectArchive[var2].fillBack;
- this.PuppetCast.objectArchive[var2].penFore = var1.objectArchive[var2].penFore;
- this.PuppetCast.objectArchive[var2].penBack = var1.objectArchive[var2].penBack;
- this.PuppetCast.objectArchive[var2].fillPat = var1.objectArchive[var2].fillPat;
- this.PuppetCast.objectArchive[var2].penPat = var1.objectArchive[var2].penPat;
- this.PuppetCast.objectArchive[var2].lineSize = var1.objectArchive[var2].lineSize;
- this.PuppetCast.objectArchive[var2].numOfPoints = var1.objectArchive[var2].numOfPoints;
- if (this.PuppetCast.objectArchive[var2].Type == 0) {
- short var3 = this.PuppetCast.objectArchive[var2].numOfPoints;
- this.PuppetCast.objectArchive[var2].X = new int[var3];
- this.PuppetCast.objectArchive[var2].Y = new int[var3];
-
- for(int var4 = 0; var4 < this.PuppetCast.objectArchive[var2].numOfPoints; ++var4) {
- this.PuppetCast.objectArchive[var2].X[var4] = var1.objectArchive[var2].X[var4];
- this.PuppetCast.objectArchive[var2].Y[var4] = var1.objectArchive[var2].Y[var4];
- }
- }
-
- this.PuppetCast.objectArchive[var2].ovalW = var1.objectArchive[var2].ovalW;
- this.PuppetCast.objectArchive[var2].ovalH = var1.objectArchive[var2].ovalH;
- this.PuppetCast.objectArchive[var2].arcAngle = var1.objectArchive[var2].arcAngle;
- this.PuppetCast.objectArchive[var2].startAngle = var1.objectArchive[var2].startAngle;
- this.PuppetCast.objectArchive[var2].Color = var1.objectArchive[var2].Color;
- this.PuppetCast.objectArchive[var2].Style = var1.objectArchive[var2].Style;
- this.PuppetCast.objectArchive[var2].Size = var1.objectArchive[var2].Size;
- this.PuppetCast.objectArchive[var2].Align = var1.objectArchive[var2].Align;
- this.PuppetCast.objectArchive[var2].Font = var1.objectArchive[var2].Font;
- this.PuppetCast.objectArchive[var2].Data = var1.objectArchive[var2].Data;
- }
-
- }
- }
-